<?php
	require_once $_site->get_handlepath('admin');
	$account = request('account');  //账户
	$password =request('password');  //密码
	$code=request('admincode');   //验证码
	$flag=1;

	//根据账户和密码得到管理员信息
	$info=admin_fun_info_account($account);

	 $type=($info['group']==2)?1:0;

	$account_str = "&account={$account}&password={$password}&type={$type}&admincode={$code}&flag={$flag}";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $_site->site_config['site']['title']?></title>
		<script type="text/javascript">
			function ok(){
			  window.location="/handle.php?h=admin/login<?php echo $account_str;?>";
			}
			var time2=setTimeout(function (){
			ok();
			clearTimeout(time2);
		},5000);
		</script>
	</head>
	<body>
		<iframe onload="ok();"  frameborder="0" width="0" height="0" src="<?php echo $_site->site_config['site']['zcxt_site'];?>/op.php?op=login<?php echo $account_str;?>"></iframe>
	</body>
</html>